
#import "SEGOwesDisInfoModel.h"
@implementation SEGOwesDisInfoModel
- (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
- (instancetype)init
{
    self = [super init];
    if (self) {
        _houseId = @"";
        _disFee = [NSArray<SEGOwesDisFeeModel*> array];
    }
    return self;
}

- (void)setValue:(id)value forKey:(NSString*)key
{

    if ([key isEqualToString:@"disFee"]) {
        NSMutableArray* _arrM = [NSMutableArray array];
        for (NSDictionary* dict in value) {
//            SEGOwesDisFeeModel* model = [SEGOwesDisFeeModel initWithDictionary:dict];
            SEGOwesDisFeeModel *model = [SEGOwesDisFeeModel yy_modelWithDictionary:dict];
            [_arrM addObject:model];
        }
        _disFee = _arrM.copy;
        return;
    }

    [super setValue:value forKey:key];
}

+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    return [[self alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{
}
- (void)setHouseId:(NSString*)houseId
{
    _houseId = [[SEGUtils ValueToString:houseId] copy];
}

@end
